<template>
  <div>
    <van-card
        v-for="item in arr"
        :key="item.id"
        num="1"
      :price="item.price | filterPrice"
      :title="item.goodsname"
      :thumb="$pre + item.img"
      @click="jump(item.id)"
    />
  </div>
</template>

<script>
export default {
    props:["arr"],
    data(){
        return {
        }
    },
    methods:{
        jump(a){
            this.$router.push("/detail/" + a);
        }
    }
};
</script>

<style>
</style>